﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@using CodeGenerator.Core
@using System.Text
@{
    EntityCodeCreate model = Model;
    TableInfo table = model.TableInfo;
}
namespace @(model.NameSpace).Entity
{
@if (!string.IsNullOrEmpty(table.Comments))
{
    @:/// <summary>
    @:/// @table.Comments
    @:/// </summary>
}
    public class @(model.Name)Entity
    {
    	#region 实体
    @foreach (ColumnInfo column in table.ColumnList)
    {
        if (!string.IsNullOrEmpty(column.Comments))
        {
        @:/// <summary>
        @:/// @column.Comments
        @:/// </summary>
        }
    	@:public @column.NetType.Alias @Pascal(column.Name) { get; set; }
    	@:
    }
    	#endregion
    }
}

